export const table_config = () => {
    const config = {
        pageSize: 10,
        pageNum: 1,
        total: 1000,
        rowKey: "postId", //如果需要树型数据填写这个，否则为空
        // defaultColumnWidth: 260,//默认的列宽

        //UI
        defaultExpandAll: false, //是否默认展开所有行
        pagingShow: true,//本页1-2
        totalShow: true,//共10条数据
        paginationShow: true,//分页

        selectionChange:true, //是否支持多选
        searchList: [
            {placeholder: '请输入', label: '用户姓名', key: 'documentName', type: 'text'},
        ],
        buttonList: [
            {name: '刷新数据', type: 'primary', plain: true, emitLabel: 'refresh'},
            // {name: '展开折叠', type: 'info', emitLabel: 'expand'},
            {name: '新增', type: 'primary', emitLabel: 'add', },
            {name: '删除', type: 'danger', emitLabel: 'delAll',},
        ],
        tableList: [
            {label: '证件名称', key: 'name', link: true,},
            {label: '证件类型', key: 'type', dicKey: "card_type"},
            {label: '所属人员', key: 'nameBy'},
            {label: '证件人', key: 'documentName'},
            {label: '证件号', key: 'documentNum'},
            {label: '状态', key: 'status', dicKey: "status_type"},
            {label: '存入时间', key: 'createTime'},
            {label: '最后解除时间', key: 'outTime'},
        ],
        tableButton: {
            name: '操作',
            list: [
                {name: '修改', type: 'success', emitLabel: 'edit', childrenDisplay: false},
                // {name: '新增', type: 'primary', emitLabel: 'addChildren', childrenDisplay: false},
                {name: '删除', type: 'danger', emitLabel: 'delete', childrenDisplay: true}
            ]
        }
    }
    return config
}